﻿@model EyeOpen.Combinatorics.Mvc.Models.TeamModelResult
@{
	var itemPerPage = 10;
	var pages = Math.Ceiling(Model.Matches.Count() / (decimal)itemPerPage);
	var index = 0;
}		
@for (var page = 0; page < pages; page++)
{
	<div style="float:left;margin-right:20px;overflow:auto;min-height:300px">
		<table>		
		@foreach (var match in Model.Matches.Skip(page * itemPerPage).Take(itemPerPage))
		{
			<tr>
				<td>@(++index)</td>
				@foreach (var team in match)
				{
					<td>@team</td>
				}
			</tr>
		}
		</table>
	</div>
}